﻿using MediatR;
using SystemHYS.API.Application.command.GualityProjectCommand;
using SystemHYS.Domian;
using SystemHYS.Infrstructre.Interface;
namespace SystemHYS.API.Application.commandler.GualityProjectCommandler
{
    public class GualityProjectModelCommandler:IRequestHandler<GualityProjectModelCommand, GualityProject>
    {
        IGualityProjectRepository GroupRepository;
        public GualityProjectModelCommandler(IGualityProjectRepository GroupRepository)
        {
            this.GroupRepository = GroupRepository;
        }

        public async Task<GualityProject> Handle(GualityProjectModelCommand request, CancellationToken cancellationToken)
        {
            return await GroupRepository.GetModelAsnc(request.gualityProjectId);
        }
    }
}
